package com.shujia.wyh.day15.danlidemo1;

/*
    单例模式：饿汉式
 */
public class DanLiTest {
    public static void main(String[] args) {
//        Student s1 = Student.getStudent();
//        Student s2 = Student.getStudent();
//        Student s3 = Student.getStudent();
//        Student s4 = Student.getStudent();
//
//        System.out.println(s1==s2);
//        System.out.println(s2==s3);
//        System.out.println(s2==s4);

    }
}
